package top.chenfu1201.clientApi.mns.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutReceiver {

    @RabbitListener(queues = {"fanout-one"})
    public void receiver1(String msg) {
        System.out.println("FanoutReceiver-fanout-one:" + msg);
    }

    @RabbitListener(queues = {"fanout-two"})
    public void receiver2(String msg) {
        System.out.println("FanoutReceiver-fanout-two:" + msg);
    }

}
